President Barack Obama and Prince Charles were among the thousands who paid tribute to the legendary playwright on the 400th anniversary of his death.