A 24-year-old man has been charged after a rooftop standoff with police in Blackpool.