Harry Potter creator JK Rowling has announced on Twitter that she is donating £1m to charities to help people in need during the health crisis.