Amber Rudd has resigned as Home Secretary amid claims she misled Parliament over targets for removing illegal migrants.